package com.htz.agency.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author tang
 * @date 2025年06月28日 17:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("announcements_expired")
public class AnnouncementExpired {
    @TableId
    private Long id;

    private String title;

    private String content;

    private Integer categoryId;

    private Integer adminId;  // 假设已存在Admin实体类

    private Integer isActive;

    private Integer deleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date archiveTime;  //存储的过期公告存储时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date endTime;


    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
